version='1.1.0'

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -o ../build/ginGms-linux ../
#upx build/docker-agent-linux

# CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-w -s' -o ../build/ginGms-darwin main.go
# #upx build/docker-agent-darwin

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-w -s' -o ../build/ginGms-window.exe ../
# #upx build/docker-agent-window.exe

cd ../build
tar -czvf ./ginGms-linux-amd64-${version}.tar.gz ./ginGms-linux
# tar -czvf ./ginGms-darwin-amd64-${version}.tar.gz ./ginpro-darwin
tar -czvf ./ginGms-window-amd64-${version}.tar.gz ./ginGms-window.exe